package com.khoinguyen.feedtweet.test;

import twitter4j.IDs;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;

public class GetAllFriends {
	public static void main(String[] args) throws TwitterException {
		Twitter twitter = TwitterFactory.getSingleton();
		long cursor = -1;
		IDs ids;
		int total = 0;
		ids = twitter.getFriendsIDs("ndkhoiits", -1);
		for (long id : ids.getIDs()) {
			System.out.println(id);
		}
		System.out.println(ids.getIDs().length);
//		do {
//			total += 1;
//			ids = twitter.getFollowersIDs("ndkhoiits", cursor);
//			long t = ids.getIDs().length;
//			System.out.println(t);
//			/*for (long id : ids.getIDs()) {
//				User user = twitter.showUser(id);
//				System.out.println(user.getScreenName());
//				System.out.println(user.getFollowersCount());
//			}*/
//		} while ((cursor = ids.getNextCursor()) != 0);
		
//		System.out.println("Total = " + total);
	
	}
}
